import { getNoteFromId } from "@/app/actions/fetchers"; import { NotebookIcon } from "lucide-react"; async function Page({ params }: { params: { noteid: string } }) { const note = await getNoteFromId(params.noteid as string); if (!note.success) { return
Failed to load note
; } return (
Note

{note.data?.title}

{note.data?.content}
); } export default Page;